//
//  TKYCompanyController.m
//  StationHouseHelper
//
//  Created by apple on 2018/6/21.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYCompanyController.h"
#import "TKYMineCell.h"
#import "TKYMineDetaileController.h"

@interface TKYCompanyController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic, strong)BaseTabelView *tableView;

@end

@implementation TKYCompanyController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.tableView];
    // Do any additional setup after loading the view.
}

#pragma mark-- UITableViewDelegate,UITableViewDataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 40;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 60;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    TKYMineCell *cell = [tableView dequeueReusableCellWithIdentifier:kMineCellID];
      cell.selectedBtn.hidden = YES;
    //cell.textLabel.text = @"按成员分类";
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    TKYMineDetaileController *mineDetaileVC = [[TKYMineDetaileController alloc]init];
    
    [self.navigationController pushViewController:mineDetaileVC animated:YES];
}

- (BaseTabelView *)tableView{
    if (_tableView == nil) {
        _tableView = [[BaseTabelView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
        _tableView.delegate = self;
        _tableView.dataSource = self;
        [_tableView registerNib:[UINib nibWithNibName:@"TKYMineCell" bundle:nil] forCellReuseIdentifier:kMineCellID];
    }
    return _tableView;
}

@end
